#ifndef _COLOR_H_
#define _COLOR_H_

#include "vector.h"

class color: public vector4
{
public:
	color(float _r,float _g, float _b, float _a){r=_r;g=_g;b=_b;a=_a;}
	color(){r=0.0f;g=0.0f;b=0.0f;a=0.0f;}
	u32 argb(){return((u32)((((u8)(a*255)&0xff)<<24)|(((u8)(r*255)&0xff)<<16)|(((u8)(g*255)&0xff)<<8)|((u8)(b*255)&0xff)));}
	u32 rgba(){return((u32)((((u8)(r*255)&0xff)<<24)|(((u8)(g*255)&0xff)<<16)|(((u8)(b*255)&0xff)<<8)|((u8)(a*255)&0xff)));}
};

#endif